package com.futureweaver.controller;

import com.futureweaver.domain.MedicalTechnology;
import com.futureweaver.service.MedicalTechnologyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@RequestMapping("medical_tech")
@Controller
public class MedicalTechnologyController {
    @Autowired
    private MedicalTechnologyService service;

    @RequestMapping("/query")
    @ResponseBody
    public List<MedicalTechnology> query(@RequestBody MedicalTechnology tech) {
        return service.query(tech);
    }
}
